define([
    'angular',
    'angular-ui-bootstrap',
    'core/directives/datepicker'
], function(angular) {
    var directive = angular.module('app.directive', ['ngAnimate', 'ui.bootstrap', 'app.directive.datepicker']);

    directive.config(['$uibTooltipProvider', function($uibTooltipProvider) {
        $uibTooltipProvider.options({ placement: 'top' });
    }]);

    directive.directive('autofocus', function() {
        return {
            restrict: 'A',
            link: function(scope, element) {
                element[0].focus();
            }
        };
    });

    return directive;
});
